'use client';

import { Provider } from 'react-redux';
import { AuthProvider } from '@/context/auth-context';
import ErrorBoundary from '@/components/ErrorBoundary';
import store from '@/store';

interface ClientProvidersProps {
  children: React.ReactNode;
}

export default function ClientProviders({ children }: ClientProvidersProps) {
  return (
    <Provider store={store}>
      <ErrorBoundary>
        <AuthProvider>{children}</AuthProvider>
      </ErrorBoundary>
    </Provider>
  );
}

